﻿package component.validate.config;

import org.apache.commons.digester.Digester;
import org.apache.commons.digester.RuleSetBase;

public class ValidatorRuleSet extends RuleSetBase{
	
	public void addRuleInstances(Digester digester){
		digester.addObjectCreate("validators/validator",ValidatorInfo.class); 
		digester.addSetProperties("validators/validator");
		digester.addSetNext("validators/validator", "addValidatorInfo");
		
		digester.addObjectCreate("validators/validator/delete/relation",DeleteValidatorInfo.class);
		digester.addSetProperties("validators/validator/delete/relation");
		digester.addSetNext("validators/validator/delete/relation", "addDeleteValInfo");
		
		digester.addObjectCreate("validators/validator/save",SaveValidatorInfo.class);
		digester.addSetProperties("validators/validator/save");
		digester.addSetNext("validators/validator/save", "addSaveValInfo");
	}
	
}
